FROM node:20

WORKDIR /app

COPY . .

# 用正式 API 地址覆盖 .env
RUN echo "VITE_API_BASE=https://video-maker-api.sdjtwlgs.cn" > .env

RUN npm install

EXPOSE 5173

CMD ["npm", "run", "dev"]